//
//  MIDImedalCell.m
//  迷笛
//
//  Created by . on 2018/9/17.
//  Copyright © 2018年 🍃🌺🌺🍃. All rights reserved.
//

#import "MIDImedalCell.h"

@implementation MIDImedalCell
-(UIImageView *)img
{
    if (!_img)
    {
        _img =[[UIImageView alloc]init];
        [self addSubview:self.img];
        [self.img mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_offset(WidthScale(10));
            make.centerX.equalTo(self);
            make.width.mas_offset(WidthScale(97));
            make.height.mas_offset(kDevice_Is_iPhoneX?HeighX(123):HeightScale(123));
        }];
    }
    return _img;
}
-(UILabel *)Lv
{
    if (!_Lv)
    {
        _Lv =[[UILabel alloc]init];
        _Lv.textColor = [UIColor colorWithHexString:@"#FFFFFF"];
        _Lv.font =[UIFont systemFontOfSize:WidthScale(14)];
        [self addSubview:self.Lv];
        [self.Lv mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.img.mas_bottom).offset(WidthScale(10));
            make.centerX.equalTo(self.img);
            [self.Lv setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
        }];
    }
    return _Lv;
}
@end
